package ko.begin;

import android.app.Activity;
import android.app.TabActivity;
import android.os.Bundle;
import android.widget.TabHost;


public class main extends TabActivity {
    /** Called when the activity is first created. */
    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.main);
        
        //Get the Instance
        _tabhost = getTabHost();
        
        //Add Tab code Mp3
        _tabhost.addTab(
        		_tabhost.newTabSpec("tab1")
        		.setIndicator("tab1")
        		//.setIndicator("Mp3",getResources().getDrawable(R.drawable.icon))
        		.setContent(R.id.view1)
        			    );
        
        //Add Tab code GoogleMap        
        _tabhost.addTab(
        		_tabhost.newTabSpec("tab2")
        		.setIndicator("tab2")
        		.setContent(R.id.view2)
        		);
        //Add Tab code Text
        _tabhost.addTab(
        		_tabhost.newTabSpec("tab3")
        		.setIndicator("tab3")
        		.setContent(R.id.view3)
        		);
        
        //Selection View the Tab
        _tabhost.setCurrentTab(0);
    }
    
    
    private TabHost _tabhost = null;
}